package com.yjd.comm.easycard.enums;

/**
 * @author SongJian 491835898@qq.com
 * 
 * @Function :易借卡信息变更类型枚举
 *
 */
public enum EasycardExchangeTypeEnum {

	EX_CARD(1,"卡号变更"),
	EX_BASIC(2,"基本资料变更"),
	EX_AUTHENTICATE(3,"认证信息变更"),
	EX_CREDIT(4,"授信信息变更");
	
	private Integer value;
	private String description;
	
	private EasycardExchangeTypeEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}
	public static EasycardExchangeTypeEnum get(Integer value) {
		EasycardExchangeTypeEnum[] enums = EasycardExchangeTypeEnum.values();
		for (EasycardExchangeTypeEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		EasycardExchangeTypeEnum enum1 = EasycardExchangeTypeEnum.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}
	
	
}